
import java.util.concurrent.*;

public class Demo2 {
    public static void main(String[] args) {
        ExecutorService pool = Executors.newFixedThreadPool(10);
        pool.submit(new Runnable() {
            @Override
            public void run() {
                System.out.println("hello");
            }
        });
        pool.submit(()->{
            System.out.println("hello");
        });
    }
}
